package org.easy.core.exception;


import lombok.Data;

import java.util.List;


@Data
public class SysRuntimeException extends RuntimeException {

    private String msg;

    private int code = 150;

    private List<String> errStacks;


    public SysRuntimeException(String message) {
        super(message);
        this.msg = message;
    }


    public SysRuntimeException(int code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }


    public SysRuntimeException(int code, String msg, List<String> errStacks) {
        super(msg);
        this.msg = msg;
        this.code = code;
        this.errStacks = errStacks;
    }

}
